package com.lzq.badminton.controller;

import com.lzq.badminton.dto.ArenaDto;
import com.lzq.badminton.service.ArenaService;
import com.lzq.badminton.vo.ArenaVo;
import com.lzq.badminton.vo.ResponseResult;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

import java.util.List;

@RestController()
@RequestMapping("/arena")
public class ArenaController {
    @Autowired
    private ArenaService arenaService;

    @GetMapping("/list")
    @ApiOperation(value="查询球馆们")
    public ResponseResult listArena(){
        List<ArenaVo> arenaVoList = arenaService.listArena();
        return ResponseResult.okResult(arenaVoList);
    }

}
